home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / lisp / oobr / tree-nx / Line.m < prev    next >
Encoding:
Text File  |  1995-03-25  |  265 b   |  24 lines

  1.  
  2. #import "Line.h"
  3.  
  4. @implementation Line
  5.  
  6. - setStart:(NXPoint *)s end:(NXPoint *)e
  7. {
  8.     start.x = s->x;
  9.     start.y = s->y;
  10.     end.x = e->x;
  11.     end.y = e->y;
  12.     return self;
  13. }
  14.  
  15. - render
  16. {
  17.     PSmoveto(start.x, start.y);
  18.     PSlineto(end.x, end.y);
  19.     PSstroke();
  20.     return self;
  21. }
  22.  
  23. @end
  24.